#ifndef __WWDG_H
#define __WWDG_H

#include "type_def.h"

#define CounterInit 0x7f
#define window      0x77
#define BIT_MASK          ((uint8_t)0x7F)
#define WWDG_CR_RESET_VALUE ((uint8_t)0x7F)
#define WWDG_WR_RESET_VALUE ((uint8_t)0x7F)
#define RST_FLAG_WWDGF      ((uint8_t)0x01)

void WWDG_Init(uint8_t Counter, uint8_t WindowValue);
void WWDG_Configuration(void);
uint8_t WWDG_GetCounter(void);
void WWDG_SetCounter(uint8_t Counter);
void Test_WWDGReset(void);
void Refresh_WWDG_Window(void);
FlagStatus RST_GetFlagStatus(uint8_t RST_Flag);
void RST_ClearFlag(uint8_t RST_Flag);


#endif